﻿; (function (window, undefined, $) {
    $(document).ready(function () {
        var gridopt = {
            url: options.listUrl,
            colModel: [
                   { display: '编号', name: 'Id', width: "5%", sortable: true, hide: true, align: 'left', iskey: true },
                    { display: '项目标题', name: 'ProjectName', width: "10%", sortable: false, align: 'left' },
                    { display: '项目分类', name: 'ProjectClass', width: "7%", sortable: false, align: 'left' },
                    { display: '筹资金额', name: 'Amount', width: "7%", sortable: false, align: 'left' },
                    { display: '筹集天数', name: 'CollectDays', width: "7%", sortable: false, align: 'left' },
                    { display: '一句话说明', name: 'ProjectAdWord', width: "7%", sortable: false, hide: true, align: 'left' }, 
                    { display: '预热图片', name: 'ProjectThumImage1', width: "7%", sortable: false, hide: true, align: 'left' },
                    { display: '创建时间', name: 'AuditTime', width: "7%", sortable: false, align: 'left' },
                    { display: '项目状态', name: 'ProjectStatus', width: "7%", sortable: false, align: 'left' }, 
                    { display: '操作', name: 'Id', width: "13%", sortable: false, align: 'center', process: processOp }
            
            ],
            sortname: "Id",
            sortorder: "ASC",
            title: false,
            rp: 15,
            usepager: true,
            showcheckbox: false
        };
        var xjgrid = new xjGrid("gridlist", gridopt);
        function processOp(value, cell,rowid) {  
            var ops = []; 
            ops.push("&nbsp;<a title='选择项目' href='javascript:;'  onclick=\"ok('", rowid , "')\"><i class='fa fa-edit' class='fa fa-trash-o'></i>选择1</a>");
            return ops.join("");
        }  
    
    });

})(window, undefined, jQuery);